from django.db import models

from apps.login.models import UserInfo
# Create your models here.

class PersonInfoModel(models.Model):
    department = models.CharField(verbose_name="所在院系",blank=True,null=True,max_length=64)
    major = models.CharField(verbose_name="专业", blank=True, null=True, max_length=64)
    classroom = models.CharField(verbose_name="班级", blank=True, null=True, max_length=64)
    sex = models.CharField(verbose_name="性别", blank=True, null=True, max_length=64,default="未知")
    wechat = models.CharField(verbose_name="微信号", blank=True, null=True, max_length=64)
    hobby = models.CharField(verbose_name="爱好", blank=True, null=True, max_length=64)

    user = models.ForeignKey(UserInfo,related_name="用户token",on_delete=models.CASCADE)
    class Meta:
        db_table = "personInfo"
        verbose_name = "用户信息"
        verbose_name_plural = verbose_name
